package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaPartido extends javax.swing.JFrame {
	private JPanel panPartido;
	private JPanel jPanel1;
	private JPanel panBarra;
	private JButton btnReiniciar;
	private JButton btnPosiciones;
	private JButton btnCalendario;


	public VentanaPartido() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				panPartido = new JPanel();
				getContentPane().add(panPartido, BorderLayout.CENTER);
				panPartido.setLayout(null);
				panPartido.setPreferredSize(new java.awt.Dimension(371, 107));
				panPartido.setBackground(new java.awt.Color(255,255,255));
				{
					btnCalendario = new JButton();
					panPartido.add(btnCalendario);
					btnCalendario.setText("Calendario");
					btnCalendario.setBounds(6, 21, 179, 22);
					btnCalendario.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnReiniciar = new JButton();
					panPartido.add(btnReiniciar);
					btnReiniciar.setText("Reiniciar Liga");
					btnReiniciar.setBounds(122, 76, 145, 22);
					btnReiniciar.setBackground(new java.awt.Color(173,216,230));
				}
				{
					panBarra = new JPanel();
					panPartido.add(panBarra);
					panBarra.setLayout(null);
					panBarra.setBounds(-10, 48, 437, 10);
					panBarra.setBackground(new java.awt.Color(173,216,230));
					{
						jPanel1 = new JPanel();
						panBarra.add(jPanel1);
						jPanel1.setLayout(null);
						jPanel1.setBounds(5, 5, 422, 5);
						jPanel1.setBackground(new java.awt.Color(30,144,255));
					}
				}
				{
					btnPosiciones = new JButton();
					panPartido.add(btnPosiciones);
					btnPosiciones.setText("Tabla de Posiciones");
					btnPosiciones.setBounds(203, 21, 179, 22);
					btnPosiciones.setBackground(new java.awt.Color(173,216,230));
				}
			}
			pack();
			this.setSize(403, 139);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void agregarListener (ActionListener accion){
		this.btnCalendario.addActionListener(accion);
		this.btnPosiciones.addActionListener(accion);
		this.btnReiniciar.addActionListener(accion);
	}
	
	
}
